package com.sys.server.modules.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName(value = "standard")
@ApiModel(value = "行业标准表")
public class NormasStandardEntity implements Serializable {

    @TableId(value = "sid", type = IdType.AUTO)
    @ApiModelProperty(value = "编号")
    private Integer sid;
    @ApiModelProperty(value = "标准号")
    private String number;
    @ApiModelProperty(value = "标准名")
    @TableField(value = "`name`")
    private String sname;
    @ApiModelProperty(value = "类别")
    @TableField(value = "`type`")
    private String type;
    @ApiModelProperty(value = "发布日期")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date reldate;
    @ApiModelProperty(value = "实施日期")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endate;
    @ApiModelProperty(value = "发布单位")
    private String reldepart;
    @ApiModelProperty(value = "起草单位")
    private String drdepart;
    @ApiModelProperty(value = "正文")
    private String maintext;
    @ApiModelProperty(value = "附件路径")
    private String attachment;
    @ApiModelProperty(value = "发布用户")
    private String reluser;

}
